package com.baiyun.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author by baiyun
 * @Date
 * @Description 定义封装多内大盘数据的实体类
 */
@Data
@ApiModel(description = "封装大盘数据的实体")
public class InnerMarketDomain {

    /**
     * 大盘编码
     */
    @ApiModelProperty(value = "大盘编码",name = "code")
    private String code;
    /**
     * 大盘名称
     */
    @ApiModelProperty(value = "大盘名称",name = "name")
    private String name;
    /**
     * 开盘点
     */
    @ApiModelProperty(value = "开盘点",name = "openPoint")
    private BigDecimal openPoint;
    /**
     * 当前点
     */
    @ApiModelProperty(value = "当前点",name = "curPoint")
    private BigDecimal curPoint;
    /**
     * 前收盘点
     */
    @ApiModelProperty(value = "前收盘点",name = "preClosePoint")
    private BigDecimal preClosePoint;
    /**
     * 交易量
     */
    @ApiModelProperty(value = "交易量",name = "tradeAmt")
    private Long tradeAmt;
    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额",name = "tradeVol")
    private Long tradeVol;
    /**
     * 涨跌值
     */
    @ApiModelProperty(value = "涨跌值",name = "upDown")
    private BigDecimal upDown;
    /**
     * 涨幅
     */
    @ApiModelProperty(value = "涨幅",name = "rose")
    private BigDecimal rose;

    /**
     * 振幅
     */
    @ApiModelProperty(value = "振幅",name = "amplitude")
    private BigDecimal amplitude;
    /**
     * 当前时间
     */
    //日期序列化
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "当前时间",name = "curTime")
    private Date curTime;

}
